export interface FormSchema {
    name?: string;
    type?: string;
    label?: string;
    span ?: number;
    placeholder?: string;
    options?: Array<Options>;
    format?: string;
}

interface Options {
    name: string;
    value: string;
}


export interface FormActionType {
    setFieldsValue: (values: any) => Promise<void>;
    resetFields: () => Promise<void>;
    getFieldsValue: () => any;
    updateSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => Promise<void>;
    setProps: (formProps: Partial<any>) => Promise<void>;
    validate: (nameList?: any[]) => Promise<any>;
}
